package com.stylefeng.guns.modular.system.model;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.models.auth.In;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuyulong
 * @since 2018-08-01
 */
@TableName("`order`")
public class Order extends Model<Order> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    private Integer id;
    /**
     * 微信用户id
     */
    private Integer weixinuserid;
    /**
     * 购票类型，日票，月票
     */
    private String tickettype;
    /**
     * 订单状态，0未支付，1支付，2退票
     */
    private Integer state;
    /**
     * 票价
     */
    private Integer price;
    /**
     * 购票时间
     */
    private Date tickettime;
    /**
     * 用户在小程序的唯一标识符
     */
    private String openid;
    /**
     * 出发站点
     */
    @TableField("go_site")
    private Integer goSite;
    /**
     * 结束站点
     */
    @TableField("end_site")
    private Integer endSite;
    /**
     * 上车时间
     */

    private  Integer  paynum;

    private  Integer  displaystate;
    private Date getontime;
//    @JSONField(format="yyyyMMdd")

    @JSONField(format = "yyyy-MM-dd")
    private Date newdate;

    private String weixinnickname;

    public Integer getPaynum() {
        return paynum;
    }

    public void setPaynum(Integer paynum) {
        this.paynum = paynum;
    }

    public Integer getDisplaystate() {
        return displaystate;
    }

    public void setDisplaystate(Integer displaystate) {
        this.displaystate = displaystate;
    }



    public Integer getTicketpriceid() {
        return ticketpriceid;
    }

    public void setTicketpriceid(Integer ticketpriceid) {
        this.ticketpriceid = ticketpriceid;
    }

    private Integer lineid;

    private Integer ticketpriceid;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getWeixinuserid() {
        return weixinuserid;
    }

    public void setWeixinuserid(Integer weixinuserid) {
        this.weixinuserid = weixinuserid;
    }

    public String getTickettype() {
        return tickettype;
    }

    public void setTickettype(String tickettype) {
        this.tickettype = tickettype;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Date getTickettime() {
        return tickettime;
    }

    public void setTickettime(Date tickettime) {
        this.tickettime = tickettime;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Integer getGoSite() {
        return goSite;
    }

    public void setGoSite(Integer goSite) {
        this.goSite = goSite;
    }

    public Integer getLineid() {
        return lineid;
    }

    public void setLineid(Integer lineid) {
        this.lineid = lineid;
    }

    public Integer getEndSite() {
        return endSite;
    }

    public void setEndSite(Integer endSite) {
        this.endSite = endSite;
    }

    public Date getGetontime() {
        return getontime;
    }

    public void setGetontime(Date getontime) {
        this.getontime = getontime;
    }

    public Date getNewdate() {
        return newdate;
    }

    public void setNewdate(Date newdate) {
        this.newdate = newdate;
    }

    public String getWeixinnickname() {
        return weixinnickname;
    }

    public void setWeixinnickname(String weixinnickname) {
        this.weixinnickname = weixinnickname;
    }

    @Override
    protected Serializable pkVal() {
        return null;
    }

    @Override
    public String toString() {
        return "Order{" +
        "id=" + id +
        ", weixinuserid=" + weixinuserid +
        ", tickettype=" + tickettype +
        ", state=" + state +
        ", price=" + price +
        ", tickettime=" + tickettime +
        ", openid=" + openid +
        ", goSite=" + goSite +
        ", endSite=" + endSite +
        ", getontime=" + getontime +
        ", newdate=" + newdate +
        ", weixinnickname=" + weixinnickname +
                ", lineid=" + lineid +
                ", ticketpriceid=" + ticketpriceid +
                ", paynum=" + paynum +
                ", displaystate=" + displaystate +
        "}";
    }
}
